package com.school.revervationSys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.school.revervationSys.controller.TestQuestionController;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("test_manage")
public class TestManage {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String content;

    @TableField(value = "test_count")
    private Integer testCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "end_time")
    private Date endTime;

    @TableField(exist = false)
    private List<TestQuestion> questionList;

}
